package com.jack.vipmis.vip.wei.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.jack.vipmis.common.entity.enums.BooleanEnum;
import com.jack.vipmis.common.web.controller.BaseCRUDController;
import com.jack.vipmis.vip.wei.entity.Tribune;
import com.jack.vipmis.vip.wei.entity.TribuneCategoryEnum;

/**
 * 
 * @author JackLiang
 * @date 2014-6-15
 * @version 1.0
 */
@Controller
@RequestMapping(value = "/wei/tribune")
public class TribuneController extends BaseCRUDController<Tribune, Long> {

	public TribuneController() {
		setResourceIdentity("wei:tribune");
	}

	@Override
	protected void setCommonData(Model model) {
		model.addAttribute("booleanList", BooleanEnum.values());
		model.addAttribute("category", TribuneCategoryEnum.values());
	}

}
